package com.janson.utils;

import java.sql.Timestamp;
import java.util.Date;
import java.util.UUID;

/**
 * @Author Janson
 * @Date 2022/3/29 17:13
 * @Version 1.0
 */
public class MyUtils {
    static boolean PrintFlag  = true;
    //获取时间戳
    public static Timestamp getTime(){
        return new Timestamp(new Date().getTime());
    }

//    获取uid
    public static String getUID(){
        return  UUID.randomUUID().toString().replaceAll("-","");
    }

    public static void print(String msg){
        if (PrintFlag){
            System.out.println("janson:=>"+msg);
        }
    }
}
